<extend name="Public:base" />

<block name="content">

    <form action="{:U('Maintain/index')}" method="post">
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover search-form" id="nav-talbe">
                <thead>
                    <tr style="text-align: center;">
                        <th>
                        时间：  <input id="time1" name="time1" value="{:I('time1')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                       -- <input id="time2" name="time2" value="{:I('time2')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                        <input class="marginL10" name="id" type="text" placeholder="输入查找订单号" value="{$order_id?$order_id:''}" />
                        <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                        <input type="submit" value="搜索" class="btn btn-primary radius5 btn-sm">
                        </th>

                    </tr>
                </thead>
            </table>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">

                <thead>
                <tr>
                    <th rowspan="2">订单编号</th>
                    <th colspan="4">订单资金详情</th>
                    <th rowspan="2">订单总金额(元)</th>
                    <th rowspan="2">支付时间</th>
                </tr>
                <tr>
                    <th>故障金额</th>
                    <th>优惠券</th>
                    <th>诊断费</th>
                    <th>小费</th>
                </tr>
                </thead>
                <tbody>
                <volist name="orders" id="ba" key="k">
                      <tr>
                          <td>{$ba['repair_order_num_alias']}</td>
                          <td>{$ba['fault_money']}</td>
                          <td>{$ba['vototal']}</td>
                          <td>{$ba['diagnosis_cost']}</td>
                          <td>{$ba['tip']}</td>
                          <td>{$ba['total']-$ba['diagnosis_cost']}</td>
                          <td>{$ba['pay_time']|date="Y-m-d H:i:s",###}</td>
                      </tr>
                </volist>
                <tr>
                    <td colspan="20" class="page">{$page}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>

</block>
<block name="css">
</block>
<block name="javascript">

</block>